package com.example.demo.interview.ali.q20200423;

/**
 * @author liweizhi
 * @date 2020/4/28
 *
 * double c = 0.8; double d = 0.7; double e = 0.6; 那么 c-d 与 d-e 是否相等？
 *
 * A. true
 * B. false
 *
 * false
 */
public class Test002 {
    public static void main(String[] args) {
        double c = 0.8;
        double d = 0.7;
        double e = 0.6;
        System.out.println((c - d));
        System.out.println((d - e));
        // false
        System.out.println((c - d) == (d - e));
    }
}
